package com.example.manu_facturer_orders.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.manu_facturer_orders.pojo.ServiceProviderVO;
import commons.Result;

/**
 * @author: tobed
 * @date: 2022/9/13
 * @time: 16:57
 */
public interface ServiceProviderService {

    /**
     * 服务商全查
     * @param facilitatorCode
     * @param facilitatorName
     * @param signingType
     * @return
     */
    Page<ServiceProviderVO> list(String facilitatorCode, String facilitatorName, Integer signingType, Page<ServiceProviderVO> page);

    /**
     * 服务商解约
     * @param id
     * @return
     */
    Result terminationService(Integer id);

    /**
     * 启用或停用服务商
     * @param id
     * @param signingType
     * @return
     */
    Result openOrClose(Integer id, Integer signingType);

}
